package com.redis.springbootredis.dao;

import com.redis.springbootredis.entity.Course;

import java.util.List;

/**
 * @author
 * @create 2020-10-30 11:52
 */
public interface CourseDao {

    Course selectCourseByCid(Integer cid);

    //带分页的所以数据查询
    List<Course> selectCourseByLimit(Integer pageIndex,Integer pageSize);

    void insertCourse(Course course);

    void deleteCourse(Integer cid);

    void modifyCourse(Integer cid,String cname);
}
